<%@page contentType="text/html; charset=UTF-8" language="java"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<title>北京市发明专利奖项目申报系统</title>
		<style type="text/css">
<!--
body {
	margin: 0px;
	font-size: 12px;
	background-color:#FFFFFF;
	font-family:宋体,Arial, Helvetica, sans-serif;
}

.center { width:930px; padding:2px; margin:10px 0; border:1px solid #e5e5e7;}
input { border:1px solid #a1a1a1; color:#a1a1a1; height:15px;}
-->
</style>
        <script language="javascript" type="text/jscript">
        	function modifyPassSubmit(){
        		var hideStr="";
				var zlid=document.getElementById("basicinfoModel_zlid2").value;
				var passw=document.getElementById("basicinfoModel_passw").value;
				var passw1=document.getElementById("basicinfoModel_passw1").value;
				if(zlid==""){
				alert("专利号不能为空！");
		    	}
		    	else if(passw==""){
		    	alert("密码不能为空");
		    	}
				else if(passw1==""){
				alert("确认密码不能为空！");
		    	}
				else if(!isValid(passw)){
					alert("密码只能由字母和数字组成，不能含有其它非法字符！");
				}
				else if(passw!=passw1){
					alert("密码和确认密码不一致，请重新输入！");
					document.getElementById('basicinfoModel_passw').value="";
					document.getElementById('basicinfoModel_passw1').value="";
				}
				else{
				    document.form1.action="viewModifyPassw.action";
        			document.form1.submit();
				}
        			
        	}
        	//验证表单
			function vilidateSubmit(){
				var hideStr="";
				var zlid=document.getElementById("basicinfoModel_zlid2").value;
				var passw=document.getElementById("basicinfoModel_passw").value;
				var passw1=document.getElementById("basicinfoModel_passw1").value;
				if(zlid==""){
				alert("专利号不能为空！");
		    	}
		    	else if(passw==""){
		    	alert("密码不能为空");
		    	}
				else if(passw1==""){
				alert("确认密码不能为空！");
		    	}
				else if(!isValid(passw)){
					alert("密码只能由字母和数字组成，不能含有其它非法字符！");
				}
				else if(passw!=passw1){
					alert("密码和确认密码不一致，请重新输入！");
					document.getElementById('basicinfoModel_passw').value="";
					document.getElementById('basicinfoModel_passw1').value="";
				}
				else{
				document.form1.submit();
				}
		    }
		</script>
		<script src="js/common.js" type="text/javascript"> </script>
		<script src="js/Function.js" type="text/javascript"></script>
	</head>

	<body>
		<table border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td height="64" align="left" valign="top"
					background="images/top-titleBG.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td align="left" valign="top">
								<img src="images/top-title.gif" width="364" height="48">
							</td>
							<td valign="top"
								style="background-image:url(images/top-botton.gif); background-repeat:no-repeat; background-position:center top; width:200px; text-align:center">
								<div style="padding-top:10px; ">
									<a href="#" style="color:#000000;  text-decoration:none; "
										onClick="setashomepage('all');">设为首页</a> |
									<a href="#" style="color:#000000;  text-decoration:none; "
										onClick="addtofavorite('all');">加入收藏</a>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/top-img.gif" width="997" height="201">
				</td>
			</tr>
		</table>
		<form action="viewBasicInfo.action" method="post" name="form1">
			<table class="center" border="0" align="center" cellpadding="0"
				cellspacing="0" style="margin-top:30px;">
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="63" background="images/title-bg.gif"
									style=" border-bottom:3px solid #e2e1e7; ">
									<div
										style="margin:15px 0px 0px 10px; font-size:14px; font-weight:bold;">
										<img src="images/title-ico.gif" align="absmiddle">
										申请人登录
									</div>
								</td>
							</tr>
							<tr>
								<td height="380" align="center">
									<table width="580" height="297" border="0" cellpadding="0"
										cellspacing="0" background="images/center-bg.gif">
										<tr>
											<td height="50" valign="top"
												style="padding:10px 0px 0px 20px; ">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="60" align="left">
															<img src="images/center-ico.gif" width="48" height="49">
														</td>
														<td align="left">
															<span
																style="font-size:14px; color:#0099cf; line-height:200%;">申请人登录</span>
															<br>
															<span style="color:#666666;">注意：以下为必须填写项！英文和数字应为半角字符。</span>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td align="center" valign="top">
												<table width="400" border="0" cellpadding="0"
													cellspacing="0">
													<tr align="right">
														<td height="6" colspan="2"
															style="background-image:url(images/center-top.gif); background-repeat:no-repeat;">
															<img src="images/center-top.gif" width="384" height="6">
														</td>
													</tr>
													<tr>
														<td width="200" align="right" bgcolor="#EFEFEF">
															&nbsp;
														</td>
														<td align="left" bgcolor="#EFEFEF">
															&nbsp;
														</td>
													</tr>
													<tr>
														<td align="right" bgcolor="#EFEFEF"
															style="color:#6d6d6d; padding:8px; font-size:14px;">
															<img src="images/ID-ico.gif" width="7" height="7"
																align="absmiddle">
															专 利 号 ：
														</td>
														<td align="left" bgcolor="#EFEFEF">
															<s:textfield name="basicinfoModel.zlid2" required="true"
										cssClass="id_kuang" theme="simple" maxlength="20"></s:textfield>	
														</td>
													</tr>
													<tr>
														<td align="right" bgcolor="#EFEFEF"
															style="color:#6d6d6d; padding:8px; font-size:14px;">
															<img src="images/ID-ico.gif" width="7" height="7"
																align="absmiddle">
															密&nbsp;&nbsp;&nbsp; 码 ：
														</td>
														<td align="left" bgcolor="#EFEFEF">
															<s:password name="basicinfoModel.passw" required="true"
										cssClass="id_kuang" theme="simple"></s:password>	
														</td>
													</tr>
													<tr>
														<td align="right" bgcolor="#EFEFEF"
															style="color:#6d6d6d; padding:8px; font-size:14px;">
															<img src="images/ID-ico.gif" width="7" height="7"
																align="absmiddle">
															确认密码 ：
														</td>
														<td align="left" bgcolor="#EFEFEF">
															<s:password name="basicinfoModel.passw1" required="true"
										cssClass="id_kuang" theme="simple"></s:password>
														</td>
													</tr>
													<tr>
														<td align="left" bgcolor="#EFEFEF" colspan="2">
														<s:if test="${!empty exception.message}">
														&nbsp;&nbsp;<font color="red">>>&nbsp;<s:property value="exception.message"/></font>
														</s:if>
															
														</td>
													</tr>
													<tr align="right">
														<td height="6" colspan="2"
															style="background-repeat:no-repeat; background-image:url(images/center-bottom.gif);">
															<img src="images/center-bottom.gif" width="384"
																height="6">
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td height="80" align="center">
												<img src="images/botton-xg.gif" width="98" height="36"  onclick="modifyPassSubmit();" style="cursor:pointer">
												<img src="images/botton-dl.gif" width="98" height="36" onclick="vilidateSubmit()"  style="cursor:pointer">
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
		<table width="997" border="0" align="center" cellpadding="0"
			cellspacing="1" bgcolor="#FFFFFF"
			style="border-top:1px solid #e4e4e4; margin-top:40px; color:#555555; line-height:180%;">
			<tr>
				<td height="100" align="center" valign="middle" bgcolor="#efefef">
					版权所有：北京市发明专利奖评选工作办公室
					<br>
					地址：北京市海淀区知春路23号量子银座二层209室 邮编：100191 联系电话：010-82354948、82356446-823
					<br>
					Copyright-2010 All Rights Reserved
				</td>
			</tr>
		</table>
	</body>
</html>
